home *** CD-ROM | disk | FTP | other *** search
/ 3D Game Programming All in One / 3D Game Programming All in One Disc.iso / 3D2E / demo / server / scripts / staticShape.cs < prev    next >
Text File  |  2005-11-23  |  595b  |  21 lines

  1. //-----------------------------------------------------------------------------
  2. // Torque Game Engine 
  3. // Copyright (C) GarageGames.com, Inc.
  4. //-----------------------------------------------------------------------------
  5.  
  6. //-----------------------------------------------------------------------------
  7. // Hook into the mission editor.
  8.  
  9. function StaticShapeData::create(%data)
  10. {
  11.    // The mission editor invokes this method when it wants to create
  12.    // an object of the given datablock type.
  13.    %obj = new StaticShape() {
  14.       dataBlock = %data;
  15.    };
  16.    return %obj;
  17. }
  18.  
  19.  
  20.  
  21.